export const PHONE_CONFIG = [
  {
    type: 'input',
    label: '手机号',
    key: 'phonenumber',
    labelWidth: '130rpx',
    prefixSlot: true,
    prefixName: 'phonePrefix',
    suffixSlot: true,
    suffixName: 'phoneSuffix',
    maxLength: 11,
    rules: [
      { required: true, errorMessage: '请填写手机号' }
    ]
  },
  {
    type: 'input',
    label: '验证码',
    key: 'phoneCode',
    suffixSlot: true,
    suffixName: 'phoneCode',
    maxLength: 4,
    rules: [
      { required: true, errorMessage: '请填写验证码' }
    ]
  }
]

export const PASSWORD_CONFIG = [
  {
    type: 'password',
    label: '设置新密码',
    key: 'password',
    placeholder: '请输入新密码',
    rules: [
      { required: true, errorMessage: '请输入新密码'}
    ]
  },
  {
    type: 'password',
    label: '确认新密码',
    key: 'identifyPassword',
    placeholder: '请输入新密码',
    rules: [
      { required: true, errorMessage: '请输入新密码'}
    ]
  }
]
